/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.kj.entity;

import org.hibernate.validator.constraints.Length;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * kj_badge_typeEntity
 * @author hzy
 * @version 2021-08-04
 */
@Table(name="kj_badge_type", alias="a", columns={
		@Column(name="id", attrName="id", label="id", isPK=true),
		@Column(name="type_name", attrName="typeName", label="勋章类别名", queryType=QueryType.LIKE),
		@Column(name="job_type_id", attrName="jobTypeId", label="对应岗位id"),
		@Column(name="job_type_name", attrName="jobTypeName", label="对应岗位类别名", isQuery=false),
		@Column(name="create_by", attrName="createBy", label="create_by", isUpdate=false, isQuery=false),
		@Column(name="create_date", attrName="createDate", label="create_date", isUpdate=false, isQuery=false),
		@Column(name="update_by", attrName="updateBy", label="update_by", isQuery=false),
		@Column(name="update_date", attrName="updateDate", label="update_date", isQuery=false),
		@Column(name="status", attrName="status", label="status", isUpdate=false),
	}, orderBy="a.create_date DESC"
)
public class KjBadgeType extends DataEntity<KjBadgeType> {

	private static final long serialVersionUID = 1L;
	private String typeName;		// 勋章类别名
	private String jobTypeId;		// 对应岗位id
	private String jobTypeName;		// 对应岗位类别名

	public KjBadgeType() {
		this(null);
	}

	public KjBadgeType(String id){
		super(id);
	}

	@Length(min=0, max=255, message="勋章类别名长度不能超过 255 个字符")
	public String getTypeName() {
		return typeName;
	}

	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}

	@Length(min=0, max=64, message="对应岗位id长度不能超过 64 个字符")
	public String getJobTypeId() {
		return jobTypeId;
	}

	public void setJobTypeId(String jobTypeId) {
		this.jobTypeId = jobTypeId;
	}

	@Length(min=0, max=255, message="对应岗位类别名长度不能超过 255 个字符")
	public String getJobTypeName() {
		return jobTypeName;
	}

	public void setJobTypeName(String jobTypeName) {
		this.jobTypeName = jobTypeName;
	}

}
